package cn.wk.services.impl;

import cn.wk.dao.AdminsDao;
import cn.wk.dao.UserDao;
import cn.wk.dao.impl.AdminDaolmpl;
import cn.wk.dao.impl.UserDaoImpl;
import cn.wk.entity.Admins;
import cn.wk.services.AdminsServices;

import java.util.List;

public class AdminsServicesImpl implements AdminsServices {
    private AdminsDao dao=new AdminDaolmpl();
    @Override
    public List<Admins> getAllAmin(Object...obj) {
        return dao.getAllAmin(obj);
    }

    @Override
    public int AddAdmins(Object... obj) {
        return dao.AddAdmins(obj);
    }

    @Override
    public int MidffAdmins(Object... obj) {
        return dao.MidffAdmins(obj);
    }

    @Override
    public int DelAdmins(Object... obj) {
        return dao.DelAdmins(obj);
    }
    @Override
    public int CountSize(){
        return dao.CountSize();
    }

    @Override
    public Admins findAdminById(int aid) {
        return dao.findAdminById(aid);
    }
    @Override
    public  Admins findAdminByNo(String no){return dao.findAdminByNo(no);};
}
